<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	   	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	    <title>试剂耗材详情</title>
	    <link href="../css/mui.min.css" rel="stylesheet"/>
	    <link rel="stylesheet" href="../css/iconfont.css" />
	    <link rel="stylesheet" type="text/css" href="../css/cw.css"/>
	    <script type="text/javascript" src="../js/public.js" ></script>
	    <script type="text/javascript" src="../js/jquery-2.1.4.min.js"></script>
	<body>
		<img />
	</body>
	
	<script>
		document.addEventListener('plusready' , ready , false);
		
		
		function ready(){
			
			self = plus.webview.currentWebview(); 
		
			var member = plus.storage.getItem('memberInfo'); 
			$.ajax({  
				type : 'post', 
				url : apiRoot + '/Home/Index/guide/',
				beforeSend : function(){
					plus.nativeUI.showWaiting('加载中');
				},
				complete:function(){
					plus.nativeUI.closeWaiting();
				},
				success:function(data){
					if(data){
						$('img').attr('src' , getImgUrl(data));
						
						if(member){
							var page = plus.webview.create('index.html' , 'index' , {} , {});
						}else{
							var page = plus.webview.create('login.html' , 'login' , {} , {});
						}  
						
						page.addEventListener('loaded' , function(){
							page.show('pop-in' , 2000);
						})
						
						
						
					}else{
						toast('找不到数据');
					}
				},
				error : function(e){
					toast('错误2');
				}
			})
		}
		
	</script>
	
</html>
 